<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // 定义: reverse() 方法用于颠倒数组中元素的顺序。

    // 参数: 无
    let  a =  [1,2,3];
    let item = a.reverse();  
    console.log(a); // [3, 2, 1]
</script>

</html>